import {ref} from "vue";
export const ttsDict = () => {

  const voiceTypeOptions = ref<Array<any>>([
    {
      label: 'Edge大声朗读',
      value: 'free'
    }
    ,{
      label: '微软语音',
      value: 'paid'
    }
  ])

  const planOptions = ref<Array<any>>([
    {
      label: '重新配音',
      value: 'systemVoice'
    },
    {
      label: '视频原声',
      value: 'videoVoice'
    }
    ,{
      label: '上传音频',
      value: 'uploadVoice'
    }
  ])

  const planOptionsNovel = ref<Array<any>>([
    {
      label: '重新配音',
      value: 'systemVoice'
    },{
      label: '上传音频',
      value: 'uploadVoice'
    }
  ])


  const pauseTypeOption = ref<Array<any>>([
    {
      label: '正常',
      value: 'normal'
    },{
      label: '短促',
      value: 'short'
    }
  ])

  const languageTypeOptions = ref<Array<any>>([
    {
      label: '普通话',
      value: '普通话'
    } ,{
      label: '粤语',
      value: '粤语'
    },{
      label: '吴语',
      value: '吴语'
    },{
      label: '河南官话',
      value: '河南'
    },{
      label: '东北官话',
      value: '东北'
    },{
      label: '中原官话陕西',
      value: '中原官话陕西'
    },{
      label: '山东',
      value: '山东'
    },{
      label: '台湾话',
      value: '台湾'
    }
  ])

  const ageTypeOptions = ref<Array<any>>([
    {
      label: '青年',
      value: '青年'
    } ,{
      label: '中年',
      value: '中年'
    },{
      label: '儿童',
      value: '儿童'
    },{
      label: '老年',
      value: '老年'
    }
  ])



  const pauseTimeOptions = ref<Array<any>>([
    {
      label: '0ms(无停顿,段落连读)',
      value: '0'
    } , {
      label: '100ms(紧凑)',
      value: '100'
    }, {
      label: '200ms(紧凑)',
      value: '200'
    } , {
      label: '300ms(默认为300ms,听感最好)',
      value: '300'
    }, {
      label: '400ms',
      value: '400'
    }, {
      label: '500ms',
      value: '500'
    }, {
      label: '600ms',
      value: '600'
    }
  ])

  return {
    voiceTypeOptions,
    languageTypeOptions,
    ageTypeOptions,
    pauseTypeOption,
    planOptions,
    planOptionsNovel,
    pauseTimeOptions
  }
}

